import request from '@/utils/request'

// 查询DCN列表
export function listDcn(query) {
  return request({
    url: '/ipmanagement/dcn/list',
    method: 'get',
    params: query
  })
}

// 查询DCN详细
export function getDcn(id) {
  return request({
    url: '/ipmanagement/dcn/' + id,
    method: 'get'
  })
}

// 新增DCN
export function addDcn(data) {
  return request({
    url: '/ipmanagement/dcn',
    method: 'post',
    data: data
  })
}

// 修改DCN
export function updateDcn(data) {
  return request({
    url: '/ipmanagement/dcn',
    method: 'put',
    data: data
  })
}

// 删除DCN
export function delDcn(id) {
  return request({
    url: '/ipmanagement/dcn/' + id,
    method: 'delete'
  })
}
